package com.tonysong.oa.yeboa12.controller;


import com.tonysong.oa.yeboa12.config.util.R;
import com.tonysong.oa.yeboa12.service.MenuService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tonysong
 * @since 2022-12-01
 */
@RestController
@RequestMapping("/system/cfg")
public class MenuController {

    @Resource
    private MenuService menuService;

    @GetMapping("/menu")
    public R getMenuBysId(){
        System.out.println("menu menu...controller");
        //此处不需要传递用户id
        return this.menuService.getMenuBysId();
    }
}
